/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package recitation;

/**
 *
 * @author buer
 */
public class WordSpy {

    public WordSpy(JPanelWord jPanelWord, JPanelTricks jPanelTricks) {
        editable = false;
        this.jPanelWord = jPanelWord;
        this.jPanelTricks = jPanelTricks;
    }
    
    public String getContent() {
        return jPanelWord.getShowText();
    }
    
    public String getTricks() {
        return jPanelTricks.getShowText();
    }
    
    public void toggleEditable() {
        editable = !editable;
    }
    public void setEditable() {
        jPanelWord.setEditable(editable);
        jPanelTricks.setEditable(editable);
    }
    
    public boolean isEditable() {
        return editable;
    }
    
    private boolean editable;
    private JPanelWord jPanelWord;
    private JPanelTricks jPanelTricks;
}
